package cn.tom.dao;

import cn.tom.entity.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.*;

@Mapper
public interface BookDao {


    //分页
    List<Book> findPageBook(HashMap<String,Object> map);
    //统计几条
    int total(@Param("typeid") int typeid
            , @Param("key")String key);
    //添加
    int add(Book book);
    //修改
    int update(Book book);
    //查找单个
    Book findOne(int id);
    //删除
    int del(int id);
}
